package wrappers

import (
	"context"
	"github.com/micro/go-micro/client"
)

// 相当于spring中的切面或是拦截器
type logWrapper struct {
	client.Client
}

func (this *logWrapper) Call(ctx context.Context, req client.Request, rsp interface{}, opts ...client.CallOption) error {
	return this.Client.Call(ctx, req, rsp) // 待用父类的方法
}
func NewLogWrapper(c client.Client) client.Client {
	return &logWrapper{c}
}
